
class link_network_obj {

	int n1_x, n1_y;
	int n2_x, n2_y;

	public:

	link_network_obj( int n1_x, int n1_y, int n2_x, int n2_y ) {
		this->n1_x = n1_x;
		this->n1_y = n1_y;
		this->n2_x = n2_x;
		this->n2_y = n2_y;
	}

	bool hasNode( int x, int y ) {
		if ( x == this->n1_x && y == this->n1_y ) { return true; }
		if ( x == this->n2_x && y == this->n2_y ) { return true; }
		return false;
	}

	int getNode1X() {
		return this->n1_x;
	}
	int getNode1Y() {
		return this->n1_y;
	}
	int getNode2X() {
		return this->n2_x;
	}
	int getNode2Y() {
		return this->n2_y;
	}

};
